package com.yyc.utils.poi;

import java.util.List;
import java.util.Map;

import com.yyc.system.model.TUser;

import cn.hutool.core.io.FileUtil;
import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;

public class ReadExcal2DB {
	
	
	public static void readExcel(){
		ExcelReader reader = ExcelUtil.getReader(FileUtil.file("C:\\Users\\Administrator\\Desktop\\user.xlsx"));
		List<List<Object>> list = reader.read();
		List<Map<String,Object>> map = reader.readAll();
		List<TUser> user = reader.readAll(TUser.class);
		System.out.println(user);
	}
	
	public static void main(String[] args) {
		readExcel();
	}
}
